package ru.aptu.gsp_banking.domain;

/**
 * Created by IntelliJ IDEA.
 * User: alex
 * Date: 2/10/12
 * Time: 6:52 PM
 */

public class PublicService {

//    public class PublicServiceType {
//        private String name;
//
//        public PublicServiceType(String name) {
//            this.name = name;
//        }
//
//        public String getName() {
//            return name;
//        }
//
//        public void setName(String name) {
//            this.name = name;
//        }
//    }

    private String serviceType;

    private String serviceId;

    private Integer accountId;

    private Float lastValue;

    private Float newValue;

    private Float rate;

    private String currency;

    public String getFullRate() {
        return rate.toString() + " " + currency;
    }

    public String getServiceType() {
        return serviceType;
    }

    public void setServiceType(String serviceType) {
        this.serviceType = serviceType;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public Float getLastValue() {
        return lastValue;
    }

    public void setLastValue(Float lastValue) {
        this.lastValue = lastValue;
    }

    public Float getNewValue() {
        return newValue;
    }

    public void setNewValue(Float newValue) {
        this.newValue = newValue;
    }

    public Float getRate() {
        return rate;
    }

    public void setRate(Float rate) {
        this.rate = rate;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Float getAmount() {
        return (newValue - lastValue) * rate;
    }
}
